
--[[
title: Const
description: 数字常量
]]

commonlib.IPlatform_NONE = 0;
commonlib.IPlatform_WINDOW = 1;
commonlib.IPlatform_ANDROID = 2;
commonlib.IPlatform_IOS = 3;
commonlib.IPlatform_LINUX = 4;
commonlib.IPlatform_MACOS = 5;
commonlib.IPlatform_EMSCRIPTEN = 6;

commonlib.MOUSE_BUTTON_NONE = 0;
commonlib.MOUSE_BUTTON_LEFT = 1;
commonlib.MOUSE_BUTTON_RIGHT = 2;
commonlib.MOUSE_BUTTON_MIDDLE = 3;

commonlib.KEYCODE_UNKNOWN = -1;
commonlib.KEYCODE_0 = 0;
commonlib.KEYCODE_1 = 1;
commonlib.KEYCODE_2 = 2;
commonlib.KEYCODE_3 = 3;
commonlib.KEYCODE_4 = 4;
commonlib.KEYCODE_5 = 5;
commonlib.KEYCODE_6 = 6;
commonlib.KEYCODE_7 = 7;
commonlib.KEYCODE_8 = 8;
commonlib.KEYCODE_9 = 9;
commonlib.KEYCODE_NUMPAD0 = 10;
commonlib.KEYCODE_NUMPAD1 = 11;
commonlib.KEYCODE_NUMPAD2 = 12;
commonlib.KEYCODE_NUMPAD3 = 13;
commonlib.KEYCODE_NUMPAD4 = 14;
commonlib.KEYCODE_NUMPAD5 = 15;
commonlib.KEYCODE_NUMPAD6 = 16;
commonlib.KEYCODE_NUMPAD7 = 17;
commonlib.KEYCODE_NUMPAD8 = 18;
commonlib.KEYCODE_NUMPAD9 = 19;
commonlib.KEYCODE_A = 65;
commonlib.KEYCODE_B = 66;
commonlib.KEYCODE_C = 67;
commonlib.KEYCODE_D = 68;
commonlib.KEYCODE_E = 69;
commonlib.KEYCODE_F = 70;
commonlib.KEYCODE_G = 71;
commonlib.KEYCODE_H = 72;
commonlib.KEYCODE_I = 73;
commonlib.KEYCODE_J = 74;
commonlib.KEYCODE_K = 75;
commonlib.KEYCODE_L = 76;
commonlib.KEYCODE_M = 77;
commonlib.KEYCODE_N = 78;
commonlib.KEYCODE_O = 79;
commonlib.KEYCODE_P = 80;
commonlib.KEYCODE_Q = 81;
commonlib.KEYCODE_R = 82;
commonlib.KEYCODE_S = 83;
commonlib.KEYCODE_T = 84;
commonlib.KEYCODE_U = 85;
commonlib.KEYCODE_V = 86;
commonlib.KEYCODE_W = 87;
commonlib.KEYCODE_X = 88;
commonlib.KEYCODE_Y = 89;
commonlib.KEYCODE_Z = 90;
commonlib.KEYCODE_F1 = 101;
commonlib.KEYCODE_F2 = 102;
commonlib.KEYCODE_F3 = 103;
commonlib.KEYCODE_F4 = 104;
commonlib.KEYCODE_F5 = 105;
commonlib.KEYCODE_F6 = 106;
commonlib.KEYCODE_F7 = 107;
commonlib.KEYCODE_F8 = 108;
commonlib.KEYCODE_F9 = 109;
commonlib.KEYCODE_F10                 = 110;
commonlib.KEYCODE_F11                 = 111;
commonlib.KEYCODE_F12                 = 112;
commonlib.KEYCODE_RIGHT               = 120;
commonlib.KEYCODE_LEFT                = 121;
commonlib.KEYCODE_DOWN                = 122;
commonlib.KEYCODE_UP                  = 123;
commonlib.KEYCODE_LCONTROL            = 124;
commonlib.KEYCODE_RCONTROL            = 125;
commonlib.KEYCODE_LALT                = 126;
commonlib.KEYCODE_RALT                = 127;
commonlib.KEYCODE_LSHIFT              = 128;
commonlib.KEYCODE_RSHIFT              = 129;
commonlib.KEYCODE_LGUI                = 130;
commonlib.KEYCODE_RGUI                = 131;
commonlib.KEYCODE_INSERT              = 132;
commonlib.KEYCODE_HOME                = 133;
commonlib.KEYCODE_DELETE              = 134;
commonlib.KEYCODE_END                 = 135;
commonlib.KEYCODE_PAGEUP              = 136;
commonlib.KEYCODE_PAGEDOWN            = 137;
commonlib.KEYCODE_CAPSLOCK            = 138;
commonlib.KEYCODE_PAUSE               = 139;
commonlib.KEYCODE_SPACE               = 140;
commonlib.KEYCODE_RETURN              = 141;
commonlib.KEYCODE_ESCAPE              = 142;
commonlib.KEYCODE_BACKSPACE           = 143;
commonlib.KEYCODE_TAB                 = 144;
commonlib.KEYCODE_EXCLAIM             = 145;                   -- '!'
commonlib.KEYCODE_QUOTEDBL            = 146;                  -- '"'
commonlib.KEYCODE_HASH                = 147;                      -- '#'
commonlib.KEYCODE_PERCENT             = 148;                   -- '%',
commonlib.KEYCODE_DOLLAR              = 149;                    -- '$'
commonlib.KEYCODE_AMPERSAND           = 150;                 -- '&',
commonlib.KEYCODE_QUOTE               = 151;                     -- '\''
commonlib.KEYCODE_LEFTPAREN           = 152;                 -- '(',
commonlib.KEYCODE_RIGHTPAREN          = 153;                -- ')',
commonlib.KEYCODE_ASTERISK            = 154;                  -- '*',
commonlib.KEYCODE_PLUS                = 155;                      -- '+'
commonlib.KEYCODE_COMMA               = 156;                     -- ','
commonlib.KEYCODE_MINUS               = 157;                     -- '-'
commonlib.KEYCODE_PERIOD              = 158;                    -- '.'
commonlib.KEYCODE_SLASH               = 159;                     -- '/'
commonlib.KEYCODE_UNDERSCORE          = 160;                -- '_',
commonlib.KEYCODE_QUESTION            = 161;                  -- '?',
commonlib.KEYCODE_LESS                = 162;                      -- '<'
commonlib.KEYCODE_GREATER             = 163;                   -- '>',
commonlib.KEYCODE_COLON               = 164;                     -- ':'
commonlib.KEYCODE_CARET               = 165;                     -- '^',
commonlib.KEYCODE_AT                  = 166;                        -- '@'
commonlib.KEYCODE_SEMICOLON           = 167;                 -- ';'
commonlib.KEYCODE_RIGHTBRACKET        = 168;              -- ']'
commonlib.KEYCODE_LEFTBRACKET         = 169;               -- '['
commonlib.KEYCODE_NUMPAD_PLUS         = 170;
commonlib.KEYCODE_NUMPAD_MINUS        = 171;
commonlib.KEYCODE_NUMPAD_MULTIPLY     = 172;



-- 样式值类型 (max_value=0ff=255)
commonlib.IViewStyle_ValueType_None          = 0;
commonlib.IViewStyle_ValueType_Number        = 1;
commonlib.IViewStyle_ValueType_Percentage    = 2;
commonlib.IViewStyle_ValueType_Auto          = 3;

-- 默认值
commonlib.IViewStyle_Key_DefaultValue = 0;

-- 样式键 
commonlib.IViewStyle_KeyDisplay                = 0;
commonlib.IViewStyle_KeyWidth                  = 1;
commonlib.IViewStyle_KeyHeight                 = 2;
commonlib.IViewStyle_KeyPaddingLeft            = 3;
commonlib.IViewStyle_KeyPaddingTop             = 4;
commonlib.IViewStyle_KeyPaddingRight           = 5;
commonlib.IViewStyle_KeyPaddingBottom          = 6;
commonlib.IViewStyle_KeyMarginLeft             = 7;
commonlib.IViewStyle_KeyMarginTop              = 8;
commonlib.IViewStyle_KeyMarginRight            = 9;
commonlib.IViewStyle_KeyMarginBottom           = 10;
commonlib.IViewStyle_KeyPosition               = 11;
commonlib.IViewStyle_KeyLeft                   = 12;
commonlib.IViewStyle_KeyTop                    = 13;
commonlib.IViewStyle_KeyRight                  = 14;
commonlib.IViewStyle_KeyBottom                 = 15;
commonlib.IViewStyle_KeyFloat                  = 16;
commonlib.IViewStyle_KeyBorderLeftWidth        = 17;
commonlib.IViewStyle_KeyBorderTopWidth         = 18;
commonlib.IViewStyle_KeyBorderRightWidth       = 19;
commonlib.IViewStyle_KeyBorderBottomWidth      = 20;
commonlib.IViewStyle_KeyBorderLeftColor        = 21;
commonlib.IViewStyle_KeyBorderTopColor         = 22;
commonlib.IViewStyle_KeyBorderRightColor       = 23;
commonlib.IViewStyle_KeyBorderBottomColor      = 24;
commonlib.IViewStyle_KeyOutlineWidth           = 25;
commonlib.IViewStyle_KeyOutlineColor           = 26;
commonlib.IViewStyle_KeyOverflowX              = 27;
commonlib.IViewStyle_KeyOverflowY              = 28;
commonlib.IViewStyle_KeyBackgroundImage        = 29;
commonlib.IViewStyle_KeyBackgroundColor        = 30;
commonlib.IViewStyle_KeyFontSize               = 31;
commonlib.IViewStyle_KeyColor                  = 32;
commonlib.IViewStyle_KeyLineHeight             = 33;
commonlib.IViewStyle_KeyTextAlign              = 34;


commonlib.IViewTypeView                        = 0;
commonlib.IViewTypeText                        = 1;
commonlib.IViewTypeButton                      = 2;
commonlib.IViewTypeInput                       = 3;